package com.neusoft.databus.sap.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.bizcore.web.dto.result.ResultDTO;
import com.neusoft.databus.agent.service.AssociateResourceService;
import com.neusoft.databus.common.dto.ResourceDTO;
import com.neusoft.databus.core.service.ResourceService;

@Service
public class AssociateResourceServiceImpl implements AssociateResourceService {
    @Autowired
    private ResourceService resourceService;

    @Override
    public ResultDTO<ResourceDTO> findResource(final String associate) {
        final ResourceDTO dto = this.resourceService.findByAssociate(associate);
        return ResultDTO.success(dto);
    }

}
